﻿using AutoMapper;
using D.Medicalcare.Domain.Entities;
using D.Medicalcare.Read.API.Dtos;
using D.Medicalcare.Read.API.Application.Command.DoctorCommand;
using D.Medicalcare.Read.API.Application.Command.PackageTypeCommand;
using D.Medicalcare.Read.API.Application.Command.PhysicalExaminationItemsCommand;
using D.Medicalcare.Read.API.Application.Command.TitleManagementCommand;
using D.Medicalcare.Read.API.Application.Command.DepartmentCommand;
using D.Medicalcare.Read.API.Application.Command.HealthCheckPackageCommand;
using D.Medicalcare.Read.API.Application.Command.NavigationintheHospitalCommand;
using D.Medicalcare.Read.API.Application.Command.HeaEncyclopeCommand;
using D.Medicalcare.Read.API.Application.Command.HospitalNavigationCommand;
using D.Medicalcare.Read.API.Application.Command.DoorSpendCommand;
using D.Medicalcare.Read.API.Application.Command.OutpatientConsumptionCommand;
using D.Medicalcare.Read.API.Application.Command.PatientCommand;
using D.Medicalcare.Read.API.Application.Command.RegistrationCommand;
using D.Medicalcare.Read.API.Application.Command.DoctorSchedulingCommand;
using D.Medicalcare.Read.API.Application.Command.ReserInstrucCommand;
using D.Medicalcare.Read.API.Application.Command.PhysicalExaminationInstructionsCommand;
using D.Medicalcare.Read.API.Application.Command.PhysicalexaminationCommand;
using D.Medicalcare.Read.API.Application.Command.FeedbackCommand;
using D.Medicalcare.Read.API.Application.Command.RefundCommand;


namespace D.Medicalcare.Read.API
{
    /// <summary>
    /// 映射轮廓
    /// </summary>
    public class MappingProfile : Profile
    {
        /// <summary>
        /// //映射轮廓
        /// </summary>
        public MappingProfile()
        {
            CreateMap<MenuDTO,Menu>().ReverseMap();
           CreateMap<GetDoctorCommand, Doctor>().ReverseMap();
            CreateMap<FtDoctorCommand, Doctor>().ReverseMap();
            CreateMap<PackageTypeCommand, PackageTypeModel>().ReverseMap();
           CreateMap<PhysicalExaminationItemsCommand, PhysicalExaminationItems>().ReverseMap();

           CreateMap<GetTitleManagementCommand, TitleManagement>().ReverseMap();
            CreateMap<CascadeDepartmentCommand, Department>().ReverseMap();
            CreateMap<ChildDepartmentCommand, Department>().ReverseMap();
            CreateMap<DepartmentDto, Department>().ReverseMap();

           CreateMap<GetHealthCheckPackageCommand, HealthCheckPackage>().ReverseMap();
           CreateMap<GetNavigationintheHospitalCommand, NavigationintheHospital>().ReverseMap();
            CreateMap<HeaEncyclope, GetHeaEncyclopeCommand>().ReverseMap();
           CreateMap<GetHospitalNavigationCommand, HospitalNavigation>().ReverseMap();
           CreateMap<GetHospitalNavigationIdCommand, HospitalNavigation>().ReverseMap();
           CreateMap<GetDoorSpendCommand, DoorSpend>().ReverseMap();
           CreateMap<GetOutpatientConsumptionCommand, OutpatientConsumption>().ReverseMap();
           CreateMap<GetNoPatientCommand, Patient>().ReverseMap();

           CreateMap<GetNoRegistrationCommand, GetNoRegistrationDto>().ReverseMap();
           CreateMap<GetOrderIdDoorSpendCommand,DoorSpend>().ReverseMap();
           CreateMap<GetDoctorSchedulingCommand, DoctorScheduling>().ReverseMap();


            CreateMap<GetReserInstrucCommand, ReserInstruc>().ReverseMap();
            CreateMap<GetPhysicalExaminationInstructionsCommand, PhysicalExaminationInstructions>().ReverseMap();
            CreateMap<PhysicalexaminationDto, Physicalexamination>().ReverseMap();
            CreateMap<FtPhysicalexaminationCommand, Physicalexamination>().ReverseMap();
            CreateMap<OrderPhysicalexaminationCommand, Physicalexamination>().ReverseMap();
            CreateMap<RefundDto, Refund>().ReverseMap();
            CreateMap<FtRefundCommand, Refund>().ReverseMap();
            CreateMap<GetAccountbalanceCommand, Accountbalance>().ReverseMap();
        }
    }
}


